package com.faradel.pharmapp.managedbean;

import java.sql.Date;
import java.util.Calendar;

import org.springframework.stereotype.Service;

@Service("timeClass")
public class TimeClass
{
    public static Date getCurrentDate()
    {
        Calendar cal = Calendar.getInstance();
        return new Date(cal.getTime().getTime());
    }

}
